﻿@using Constants = Ideaa.Web.Constants
@model Ideaa.Web.Models.IdeaModel

@{
    ViewBag.Title = "Details";
}

<h2>Details</h2>

<div>
    <h4>Idea</h4>
	<hr />
    <dl class="dl-horizontal">
        <dt>
            @Html.DisplayNameFor(model => model.Username)
        </dt>

        <dd>
            @Html.DisplayFor(model => model.Username)
        </dd>

        <dt>
            @Html.DisplayNameFor(model => model.Title)
        </dt>

        <dd>
            @Html.DisplayFor(model => model.Title)
        </dd>

        <dt>
            @Html.DisplayNameFor(model => model.Content)
        </dt>

        <dd>
            @Html.DisplayFor(model => model.Content)
        </dd>

        <dt>
            @Html.DisplayNameFor(model => model.DateCreatedOnUtc)
        </dt>

        <dd>
            @Html.DisplayFor(model => model.DateCreatedOnUtc)
        </dd>

    </dl>

    <div id="suggestions">
        <ul>
            @foreach (var suggestion in Model.Suggestions)
            {
                <li>
                    <h4>@suggestion.Title</h4> 
                    <p>@suggestion.Content</p>
                </li>
            }
        </ul>
    </div>
</div>
<p>
    @Html.ActionLink("Add New Suggestion",
        Constants.Controllers.Suggestion.Actions.Create,
        Constants.Controllers.Suggestion.Name,
        new { id = Model.Id},
        null) 
    @Html.Partial(Constants.Controllers.Base.PartialViews.Navigation)
</p>
